<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>锂塔二手回收</title>
    <link rel="stylesheet" href="./css/index.css">
    <style>
        .carousel-wrapper {
            position: relative;
            width: 1200px;
            margin: 40px auto;
            margin-bottom: 40px;
        }

        .carousel-btn {
            position: absolute;
            top: 50%;
            left: -48px;
            transform: translateY(-50%);
            background: none;
            border: none;
            outline: none;
            cursor: pointer;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #ff4d46;
            z-index: 2;
            transition: background 0.2s;
        }

        .carousel-btn:active {
            background: #ffeceb;
            border-radius: 50%;
        }

        #nextBtn {
            left: unset;
            right: -48px;
        }

        .product-carousel {
            overflow: hidden;
            flex: 1;
        }

        .carousel-container {
            overflow: hidden;
            width: 100%;
        }

        .carousel-list {
            width: 100%;
            display: flex;
            /* transform: translateX(calc(-34%)); */
            transition: all 0.3s ease;
        }

        .carousel-item {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 2%;
            padding: 20px 30px;
            flex: 0 0 32%;
            background-color: #fff5ec;
            border-radius: 8px;
            box-sizing: border-box;
        }

        .carousel-item:nth-child(2) {
            background: #ffeaf5;
        }

        .carousel-item:nth-child(3) {
            background: #f3e9ff;
        }

        .carousel-item:last-child {
            margin-right: 0;
            background-color: #f5f8ff;
        }

        .carousel-img {
            width: 120px;
            margin-right: 36px;
            object-fit: contain;
        }

        .carousel-info {
            flex: 1;
        }

        .carousel-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #222;
            line-height: 1.2;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
        }

        .carousel-price {
            font-size: 16px;
            color: #222;
            margin-bottom: 10px;
            font-weight: 400;
        }

        .carousel-buy {
            display: inline-block;
            background: #2ecc71;
            color: #fff;
            font-size: 18px;
            font-weight: 500;
            border: none;
            outline: none;
            border-radius: 999px;
            padding: 5px 30px;
            cursor: pointer;
            transition: background 0.2s;
            box-shadow: 0 2px 8px 0 rgba(30, 80, 180, 0.05);
            letter-spacing: 1px;
        }

        .carousel-item:nth-child(2) .carousel-buy {
            background: #ffc6a2;
        }

        .carousel-item:nth-child(3) .carousel-buy {
            background: #ffaebc;
        }

        .carousel-item:lastchild {
            background: #b0d0ff;
        }
    </style>
</head>

<body>
    <div class="home">
        <!-- 轮播图区域 -->
        <div class="carousel" id="carousel">
            <div class="carousel-track" id="carouselTrack">
            </div>
            <div class="carousel-indicators" id="carouselIndicators">
            </div>
            <!-- 导航区域 -->
            <div class="nav">
                <div class="logo">
                    <img src="./imgs/logo.png" alt="">
                </div>
                <ul class="nav-list">
                    <li>下载APP</li>
                    <li>快捷回收</li>
                    <li>二手拯救世界</li>
                    <li>联系我们</li>
                    <li>线下店加盟</li>
                </ul>
                <div class="login" id="login">
                    <div class="login-btn">登录</div>
                </div>
            </div>
        </div>
        <!-- 二手好物区 -->
        <div class="container1">
            <div class="title-big">二手好物, 验过才放心</div>
            <div class="title-small">1000+名专业工程师，真人验货</div>
        </div>
        <div class="carousel-wrapper">
            <div class="carousel-container">
                <button class="carousel-btn" id="prevBtn" aria-label="上一张">&#9664;</button>
                <div class="carousel-list" id="carouselList">
                    <div class="carousel-item">
                        <img class="carousel-img" src="./imgs/jd1.png" alt="米家 Switch">
                        <div class="carousel-info">
                            <div class="carousel-title">米家 1.5匹空调</div>
                            <div class="carousel-price">低至 ¥788</div>
                            <button class="carousel-buy">立刻购买</button>
                        </div>
                    </div>
                    <div class="carousel-item">
                        <img class="carousel-img" src="./imgs/jd2.png" alt="小天鹅 Switch">
                        <div class="carousel-info">
                            <div class="carousel-title">小天鹅滚筒洗衣机全自动</div>
                            <div class="carousel-price">低至 ¥788</div>
                            <button class="carousel-buy">立刻购买</button>
                        </div>
                    </div>
                    <div class="carousel-item">
                        <img class="carousel-img" src="./imgs/jd1.png" alt="米家 Switch">
                        <div class="carousel-info">
                            <div class="carousel-title">米家 1.5匹空调</div>
                            <div class="carousel-price">低至 ¥788</div>
                            <button class="carousel-buy">立刻购买</button>
                        </div>
                    </div>
                    <div class="carousel-item">
                        <img class="carousel-img" src="./imgs/jd2.png" alt="小天鹅 Switch">
                        <div class="carousel-info">
                            <div class="carousel-title">小天鹅滚筒洗衣机全自动</div>
                            <div class="carousel-price">低至 ¥788</div>
                            <button class="carousel-buy">立刻购买</button>
                        </div>
                    </div>
                </div>
                <button class="carousel-btn" id="nextBtn" aria-label="下一张">&#9654;</button>
            </div>
        </div>
        <!-- 总计 -->
        <div class="container2">
            <div class="title">昨日在本平台卖出闲置二手</div>
            <div class="total">199718<span>件</span></div>
        </div>
        <div class="now-buy">
            <div class="now-btn">
                我现在就要卖
            </div>
        </div>
        <!-- 回收分区 -->
        <div class="list-area">
            <div class="item">
                <div class="header">
                    <div class="title">电池回收</div>
                    <div class="more">查看更多</div>
                </div>
                <div class="grid-container">
                    <!-- 第一行 -->
                    <div class="grid-item">
                        <img src="./imgs/p1.png" alt="电池回收" class="product-image">
                        <div class="product-name">临汾二手新能源汽车电池包 埃安Y电池包回收出售宁德174ah</div>
                        <div class="product-price">￥14990</div>
                    </div>
                    <div class="grid-item">
                        <img src="./imgs/p2.png" alt="电池回收" class="product-image">
                        <div class="product-name">临汾二手新能源汽车电池包 埃安Y电池包回收出售宁德</div>
                        <div class="product-price">￥21499</div>
                    </div>
                    <div class="grid-item">
                        <img src="./imgs/p3.png" alt="电池回收" class="product-image">
                        <div class="product-name">临汾二手新能源汽车电池包 埃安Y电池包回收出售宁德</div>
                        <div class="product-price">￥11999</div>
                    </div>

                    <!-- 第二行 -->
                    <div class="grid-item">
                        <img src="./imgs/p4.png" alt="电池回收" class="product-image">
                        <div class="product-name">临汾二手新能源汽车电池包 埃安Y电池包回收出售宁德</div>

                        <div class="product-price">￥16999</div>
                    </div>
                    <div class="grid-item">
                        <img src="./imgs/p5.png" alt="电池回收" class="product-image">
                        <div class="product-name">临汾二手新能源汽车电池包 埃安Y电池包回收出售宁德</div>
                        <div class="product-price">￥13999</div>
                    </div>
                    <div class="grid-item">
                        <img src="./imgs/p6.png" alt="电池回收" class="product-image">
                        <div class="product-name">临汾二手新能源汽车电池包 埃安Y电池包回收出售宁德</div>
                        <div class="product-price">￥17999</div>
                    </div>
                </div>
            </div>
            <div class="item">
                <div class="header">
                    <div class="title">家电回收</div>
                    <div class="more">查看更多</div>
                </div>
                <div class="grid-container">
                    <!-- 第一行 -->
                    <div class="grid-item">
                        <img src="./imgs/j1.png" alt="家电回收" class="product-image">
                        <div class="product-name">众新再生资源酒店回收报废家电现场结算实力雄厚长期经营</div>
                        <div class="product-price">￥3500</div>
                    </div>
                    <div class="grid-item">
                        <img src="./imgs/j2.png" alt="家电回收" class="product-image">
                        <div class="product-name">众新再生资源酒店回收报废家电现场结算实力雄厚长期经营</div>
                        <div class="product-price">￥3500</div>
                    </div>
                    <div class="grid-item">
                        <img src="./imgs/j1.png" alt="家电回收" class="product-image">
                        <div class="product-name">众新再生资源酒店回收报废家电现场结算实力雄厚长期经营</div>
                        <div class="product-price">￥3500</div>
                    </div>

                    <!-- 第二行 -->
                    <div class="grid-item">
                        <img src="./imgs/j1.png" alt="家电回收" class="product-image">
                        <div class="product-name">众新再生资源酒店回收报废家电现场结算实力雄厚长期经营</div>
                        <div class="product-price">￥3500</div>
                    </div>
                    <div class="grid-item">
                        <img src="./imgs/j2.png" alt="家电回收" class="product-image">
                        <div class="product-name">众新再生资源酒店回收报废家电现场结算实力雄厚长期经营</div>
                        <div class="product-price">￥3500</div>
                    </div>
                    <div class="grid-item">
                        <img src="./imgs/j1.png" alt="家电回收" class="product-image">
                        <div class="product-name">众新再生资源酒店回收报废家电现场结算实力雄厚长期经营</div>
                        <div class="product-price">￥3500</div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 专业的团队 -->
        <div class="team">
            <div class="team-container">
                <div class="title-big">专业的团队</div>
                <div class="title-small">为您服务保驾护航</div>
                <div class="list">
                    <div class="list-item">
                        <img src=""
                            alt="" class="team-advantage-li-img">
                        <div class="title">
                            腾讯投资
                        </div>
                        <div class="title-small">
                            微信支付 平台担保交易
                        </div>
                    </div>
                    <div class="list-item">
                        <img src=""
                            alt="" class="team-advantage-li-img">
                        <div class="title">
                            转转&富士康
                        </div>
                        <div class="title-small">
                            联合定制3C数码权威评估标准
                        </div>
                    </div>
                    <div class="list-item">
                        <img src=""
                            alt="" class="team-advantage-li-img">
                        <div class="title">
                            真实个人
                        </div>
                        <div class="title-small">
                            各项实名认证 层层把关
                        </div>
                    </div>
                    <div class="list-item">
                        <img src=""
                            alt="" class="team-advantage-li-img">
                        <div class="title">
                            帮你卖
                        </div>
                        <div class="title-small">
                            多种出售方式 帮你卖高价
                        </div>
                    </div>

                </div>
            </div>
        </div>
        <!-- 重新定义 -->
        <div class="new-describe">
            <div class="nd-container">
                <div class="title-big">重新定义二手</div>
                <div class="title-small">官方评估师为交易保驾护航</div>
                <div class="nd-carousel" id="carousel2">
                    <div class="carousel-track" id="carouselTrack2">
                    </div>
                </div>
                <div class="carousel-indicators" id="carouselIndicators2">
                </div>
            </div>
        </div>
        <!-- 最底部 -->
        <footer>
            <div class="footer-container">
                <div class="logo">
                    <img src="./imgs/logo2.png" alt="">
                </div>
                <div class="des">
                    转转-真的官方验，买卖二手不一样
                </div>
                <div class="right">
                    <img src="./imgs/code.png" alt="">
                </div>
            </div>
        </footer>
    </div>
    <script src="./js/index.js"></script>
    <script src="./js/index2.js"></script>
    <script src="./js/common.js"></script>
</body>

</html>